package com.rock.securityresearch.common.equity.financereport

import io.circe.{Encoder, Json}

case class FinanceReport(`type`: FinanceReportType, items: List[FinanceReportItem])

case class FinanceReportItem(name: String, values: List[FinanceReportValue])

case class FinanceReportValue(date: String, value: Option[Double])

object FinanceReport {
//    given encoder: Encoder[FinanceReport] = (t: FinanceReport) => {
//        Json.obj(
//            "type" -> Json.fromString(t.`type`.toString),
//            "items" -> Json.from
//        )
//    }
}